<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Insert title here</title>
<%@ include file="/WEB-INF/base/head.jsp"%>
<style type="text/css">
.title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    margin: 0px;
    color: #000;
    background-color: #F0F9FF;
}

</style>
<script type="text/javascript">
function formMsg(id,url){
	 $.ajax({
			type : 'POST',
			url:url,
			data :$('#'+id).serialize(), 
			dataType:'json', 
			success : function(data) {
				if (data.code==200) {
					var url = '<c:url value="/question/success.htm" />';
				    window.location = url;
				}else if(data.code==50){
					alert(data.msg);
				} else {
						
				}
			}
		});
}
</script>
</head>
<body>
	<div class="container"> 
		<div class="row">
			<div class="title">社会人员调查问卷</div>
		</div>
		<form id="myForm">
			<div>
				<hr>
				<p>姓名：<input type="text" name="name"> </p>
				<p>年龄：<input type="text" name="age"> </p>
				<p>手机：<input type="text" name="phone"> </p>
			</div>
			<div>
					<hr>
					<h3>您是？</h3>
					<p><input type="radio" name="question1"  value="A">A.计算机软件工程专业</p>
					<p><input type="radio" name="question1"  value="B">B.计算机信息技术专业</p>
					<p><input type="radio" name="question1"  value="C">C.电子专业</p>
					<p><input type="radio" name="question1"  value="D">D.其它专业</p>
					<hr>
					<h3>工作中主要使用的语言？</h3>
					<p><input type="checkbox" name="question2"  value="A">A.java</p>
					<p><input type="checkbox" name="question2"  value="B">B.c++</p>
					<p><input type="checkbox" name="question2"  value="C">C.c</p>
					<p><input type="checkbox" name="question2"  value="D">D.c#</p>
					<p><input type="checkbox" name="question2"  value="E">E.golang</p>
					<p><input type="checkbox" name="question2"  value="F">F.其它</p>
					
					<hr>
					<h3>从事的主要工作内容？</h3>
					<p><input type="checkbox" name="question3"  value="A">A.软件开发</p>
					<p><input type="checkbox" name="question3"  value="B">B.硬件开发</p>
					<p><input type="checkbox" name="question3"  value="C">C.系统运维</p>
					<p><input type="checkbox" name="question3"  value="D">D.IT运维</p>
					<p><input type="checkbox" name="question3"  value="E">E.其它</p>
					
					<hr>
					<h3>您觉得现在什么语言前景比较好？</h3>
					<p><input type="checkbox" name="question4"  value="A">A.java</p>
					<p><input type="checkbox" name="question4"  value="B">B.golang</p>
					<p><input type="checkbox" name="question4"  value="C">C.object -c</p>
					<p><input type="checkbox" name="question4"  value="D">D.python</p>
					<p><input type="checkbox" name="question4"  value="E">E.c++</p>
					<p><input type="checkbox" name="question4"  value="F">F.C</p>
					<p><input type="checkbox" name="question4"  value="G">G.C#</p>
					<p><input type="checkbox" name="question4"  value="H">H.其它</p>
					
					<hr>
					<h3>现在需要掌握哪些技能？</h3>
					<p><input type="checkbox" name="question5"  value="A">A.WEB前端技术</p>
					<p><input type="checkbox" name="question5"  value="B">B.nosql数据库</p>
					<p><input type="checkbox" name="question5"  value="C">C.大数据分析</p>
					<p><input type="checkbox" name="question5"  value="D">D.AI人工智能</p>
					<p><input type="checkbox" name="question5"  value="E">E.window桌面开发</p>
					<p><input type="checkbox" name="question5"  value="F">F.手机开发</p>
					<p><input type="checkbox" name="question5"  value="G">G.服务器后台开发</p>
					<p><input type="checkbox" name="question5"  value="H">H.中间件开发</p>
			</div>
			<div>
				<p><input type="button" value="提交" onclick="submitQuestion()"> </p>
			</div>
		</form>
	</div>
</body>
<script type="text/javascript">
function submitQuestion(){
	formMsg("myForm", '<c:url value="/question/saveQuestion1.htm"/>');
}
</script>
</html>
<%@ include file="/WEB-INF/base/footer.jsp"%>